package com.finger.userservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient("service-hosp")
public interface HospClient {

    @GetMapping("/admin/hosp/dict/getName/{value}")
    public String getName(@RequestParam("value")String value);

    @GetMapping("/admin/hosp/dict/getName/{code}/{value}")
    public String getName(@RequestParam("code")String code,
                          @RequestParam("value")String value);
}
